import React, { Component } from 'react';
import Product from './Product'
import HomeBanner from './HomeBanner';
class Home extends Component {

  constructor(props) {
    super(props);
  }

  render() {
    const { name, age } = this.props; 
    return ( 
      <div>
        <h2>Home</h2>
        <p>{name} - {age}</p>
        <Product/>
        {/* 函数式组件 */}
        <HomeBanner/>
      </div>
     );
  }
}
 
export default Home;